const actions = {}
const mutations = {
	getUserInfo(state,userInfo) {
		state.userInfo = userInfo
		uni.setStorageSync('userInfo',JSON.stringify(userInfo))
	},
	getToken(state,token) {
		state.token = token
		uni.setStorageSync('token',token)
	}
}
const state = {
	userInfo : JSON.parse(uni.getStorageSync('userInfo') || '{}'),
	token : uni.getStorageSync('token') || ''
}
const getters = {}

export default {
	namespaced: true,
	actions,
	mutations,
	state,
	getters
}